package com.example.mapper;

import com.example.dto.ArticleDto;
import com.example.entity.Article;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;


/**
 *
 * @author weijingchen
 * @DateTime 2025-09-26
 */
@Mapper
public interface ArticleMapper {
    void add(Article article);

    void update(Article article);

    Page<Article> list(ArticleDto dto);

    void delete(Integer id);

    Article getById(Integer id);
}
